package com.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.entity.CartDO;
import com.example.vo.cart.CartPageReq;
import com.example.vo.cart.CartResp;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 23591
 * @description 针对表【sys_cart(购物车表)】的数据库操作Mapper
 * @createDate 2024-11-29 14:26:32
 * @Entity com.example.entity.CartDO
 */
public interface CartMapper extends MPJBaseMapper<CartDO> {
    IPage<CartResp> getCart(Page<CartResp> page,
                            @Param("req") CartPageReq req, @Param("userId") long userId);
}




